home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Serious Demos / Symbolic Composer 4.2 / Environment / Projects / Questions & Answers / Q&A Programming Functions / Converting characters to symbol < prev    next >
Encoding:
Text File  |  1998-10-26  |  272 b   |  10 lines  |  [TEXT/ScoM]

  1. CONVERTING CHARACTERS TO SYMBOLS
  2.  
  3. >I am still curious if you know of some way (other than (read-from-string 
  4. >(princ-to-string)) to convert
  5. >characters to symbols??? '(#\a #\b #\\) --> (a b \)
  6. >By the way how does ctoa works?
  7.  
  8. (defun ctoa (char)
  9.   (intern (string char)))
  10.